package com.knowif.dao;

import com.knowif.pojo.UserOrder;
import com.knowif.pojo.UserOrderExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserOrderMapper {
    int countByExample(UserOrderExample example);

    int deleteByExample(UserOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserOrder record);

    int insertSelective(UserOrder record);

    List<UserOrder> selectByExample(UserOrderExample example);

    UserOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserOrder record, @Param("example") UserOrderExample example);

    int updateByExample(@Param("record") UserOrder record, @Param("example") UserOrderExample example);

    int updateByPrimaryKeySelective(UserOrder record);

    int updateByPrimaryKey(UserOrder record);

    List<UserOrder> selectByStatus(Integer status);

    List<UserOrder> selectByUserId(@Param("userId") Integer userId,@Param("page") Integer page,@Param("amount") Integer amount);

    Map<String,Object> selectOrderStepById(int userOrderId);

    List<UserOrder> screen(Map<String, Object> params);


    String selectToUserOpenidByOrderId(@Param("id") int userOrderId);


}